package com.lin.cms.service;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lin.cms.domain.CmsConfig;
import com.lin.cms.domain.Site;
import com.lin.cms.domain.SiteCriteria;

public interface SiteService {

	Site selectByPrimaryKey(Integer siteId);
	
	int deleteByExample(SiteCriteria example);

    int deleteByPrimaryKey(Integer siteId);

    int insert(Site record);

    int insertSelective(Site record);

    List<Site> selectByExample(SiteCriteria example);

    int updateByExampleSelective(@Param("record") Site record, @Param("example") SiteCriteria example);

    int updateByExample(@Param("record") Site record, @Param("example") SiteCriteria example);

    int updateByPrimaryKeySelective(Site record);

    int updateByPrimaryKey(Site record);
    
    List<Site> selectByPage(SiteCriteria example);
    
    Site selectByDomain(String domain);
    
    public List<Site> getListFromCache();
    
    List<Site> getSiteByUserId(Integer getSiteByUserId);
    
    CmsConfig selectByConfigId(Integer configId);
    
}
